  /**
   * Generate time : 2012-06-13 16:16:20
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSmsModelPerson 
 *  
 */
public class ZMCTSmsModelPerson extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdModelId = " ";		/* 短信模板ID*/
	private String fdPersonNo = " ";		/* 发送人员工号*/
	private String fdPersonName = " ";		/* 发送人员姓名*/
	private String fdMobilePhone = " ";		/* 发送人员手机号码*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdModelId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("短信模板ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonNo");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发送人员工号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonName");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发送人员姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMobilePhone");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("发送人员手机号码");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTSmsModelPerson() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdModelId - 短信模板ID
	 * @return the fdModelId
	 */
	public String getFdModelId() {
		return this.fdModelId;
	}
	
	/**
	 * set the fdModelId - 短信模板ID
	 */
	public void setFdModelId(String fdModelId) {
		this.fdModelId = fdModelId;
	}
	
	/**
	 * get the fdPersonNo - 发送人员工号
	 * @return the fdPersonNo
	 */
	public String getFdPersonNo() {
		return this.fdPersonNo;
	}
	
	/**
	 * set the fdPersonNo - 发送人员工号
	 */
	public void setFdPersonNo(String fdPersonNo) {
		this.fdPersonNo = fdPersonNo;
	}
	
	/**
	 * get the fdPersonName - 发送人员姓名
	 * @return the fdPersonName
	 */
	public String getFdPersonName() {
		return this.fdPersonName;
	}
	
	/**
	 * set the fdPersonName - 发送人员姓名
	 */
	public void setFdPersonName(String fdPersonName) {
		this.fdPersonName = fdPersonName;
	}
	
	/**
	 * get the fdMobilePhone - 发送人员手机号码
	 * @return the fdMobilePhone
	 */
	public String getFdMobilePhone() {
		return this.fdMobilePhone;
	}
	
	/**
	 * set the fdMobilePhone - 发送人员手机号码
	 */
	public void setFdMobilePhone(String fdMobilePhone) {
		this.fdMobilePhone = fdMobilePhone;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdModelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModelId")), fdModelId));
		setFdPersonNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonNo")), fdPersonNo));
		setFdPersonName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonName")), fdPersonName));
		setFdMobilePhone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMobilePhone")), fdMobilePhone));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdModelId",StringUtils.toString(fdModelId, eiMetadata.getMeta("fdModelId")));	
			map.put("fdPersonNo",StringUtils.toString(fdPersonNo, eiMetadata.getMeta("fdPersonNo")));	
			map.put("fdPersonName",StringUtils.toString(fdPersonName, eiMetadata.getMeta("fdPersonName")));	
			map.put("fdMobilePhone",StringUtils.toString(fdMobilePhone, eiMetadata.getMeta("fdMobilePhone")));	
			
		return map;
	
	}
}